import { createSSRApp } from 'vue';
import App from './App.vue';
import Pinia, { setupPinia } from '@/stores';
import { setupUI } from '@/plugins/vk-uview-ui';
import registerComponents from './components/index';

export function createApp() {
  const app = createSSRApp(App);
  setupPinia(app);
  setupUI(app);
  registerComponents(app);
  return {
    app,
    Pinia,
  };
}
